package com.example.fsd.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.fsd.pojo.NavMenu;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author zhangguihong
 * @since 2024-11-19
 */
@Getter
@Setter
@TableName("nav_menu")
@ApiModel(value = "NavMenu对象", description = "")
@Data
public class NavMenuBo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("父级ID")
    private Integer pid;

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("中文名")
    private String nameCn;

    @ApiModelProperty("俄文")
    private String nameRa;

    @ApiModelProperty("路由")
    private String router;

    private List<NavMenuBo> children;
}
